import numpy as np

w=np.array([1,0,-1],dtype='float32')
w=w.reshape([1,1,1,3])
print(w)